package com.hyq.market.ui.home.model;

import com.hyq.market.api.AbsServiceUtils;
import com.hyq.market.api.Constant;
import com.hyq.market.bean.ClassIndex;

import org.xutils.http.RequestParams;

/**
 * Created by Administrator on 2017/7/19 0019.
 */

public class IndexUtil extends AbsServiceUtils {


    @Override
    public ClassIndex fromJson(String json) {
       // sendCode=0x23;
        return  gson.fromJson(json, ClassIndex.class);
    }


    @Override
    public void getData() {
        RequestParams params=new RequestParams(Constant.API_Index_index);
        sendToServer(params,1);
    }

}
